setting globals in html or body [migrated]
Posted
by
paul smith
on Pro Webmasters
See other posts from Pro Webmasters
or by paul smith
Published on 2012-06-12T00:00:14Z
Indexed on
2012/06/12
4:47 UTC
Read the original article
Hit count: 439
I have some questions regarding the following css that I found:
html, body {
height:100%;
min-width:100%;
position:absolute;
}
html {
background: none repeat scroll 0 0 #fff;
color:#fff;
font-family:arial,helvetica,sans-serif;
font-size:15px;
}
- is it necessary to have height and min-width to 100% on the html and body? What's the benefit?
- what is the reason for using position absolute?
- why did they set the background/color/font on the html and not the body? Is there a difference? Or is it just preference?
© Pro Webmasters or respective owner